import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/Home/HomeView.vue'





const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    // 首页
    {
      path: '/',
      name: 'home',
      meta: { showNav: true },
      component: HomeView,
    },
    //影片详情-zqb
    {
      path: '/fil',
      name: 'fil',
      component: () => import('@/views/Film/FilmParai.vue'),
    },
    //影片详情-zqb
    {
      path: '/film',
      name: 'film',
      component: () => import('@/views/Film/FilmView.vue'),
    },
    //剧照-zqb
    {
      path: '/stage',
      name: 'stage',
      component: () => import('@/views/Film/StagePhoto.vue'),
    },
    //剧组人员-zqb
    {
      path: '/crew',
      name: 'crew',
      component: () => import('@/views/Film/CrewPersonnel.vue'),
    },
    // 演员人数-zqb
    {
      path: '/actor',
      name: 'actor',
      component: () => import('@/views/Film/CrewActor.vue'),
    },
    ///影片视频-zqb
    {
      path: '/fvideo',
      name: 'fvideo',
      component: () => import('@/views/Film/FilmVideo.vue'),
    },

    {
      path: '/about',
      name: 'about',
      meta: { showNav: true },
      component: () => import('@/views/AboutView.vue'),
    },
    // 我的
    {
      path: '/mine',
      name: 'mine',
      meta: { showNav: true },
      component: () => import('@/views/Mine/MineView.vue'),

    },
    // 城市列表
    {
      path: '/city',
      name: 'city',
      component: () => import('@/views/Home/CityListView.vue'),
    },
    // 搜索页
    {
      path: '/search',
      name: 'search',
      component: () => import('@/views/Search/SearchView.vue'),
    },
    // zyy 搜索电影列表
    {
      path: '/search/movie',
      name: 'searchmovie',
      component: () => import('@/views/Search/SearvhMovieDetail.vue'),
    },
    // zyy 搜索影院列表
    {
      path: '/search/cinema',
      name: 'searchcinema',
      component: () => import('@/views/Search/SearchCinemaDetail.vue'),
    },

    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/Login/LoginView.vue'),
    },
    {
      path: '/register',
      name: 'register',
      component: () => import('@/views/Login/RegisterView.vue'),
    },
    // 视频
    {
      path: '/video',
      name: 'video',
      meta: { showNav: true },
      component: () => import('@/views/Video/VideoView.vue'),
    },
    // zyy 小视频路由的添加
    {
      path: '/smvideo',
      name: 'smvideo',
      meta: { showNav: true },
      component: () => import('@/views/SmVideo/SmVideo.vue'),
    },
    // zyy 小视频播放
    {
      path: '/smdetail',
      name: 'smdetail',
      component: () => import('@/views/SmVideo/SmDetail.vue'),
    },


    // 影院详情页  -lxz
    {
      path: '/cinemaDetails',
      name: 'cinemaDetails',
      component: () => import('@/views/Cinema/CinemaDetails.vue'),
    },
    // 测试页面  -zyy
    {
      path: '/text',
      name: 'text',
      component: () => import('@/views/SmVideo/TextView.vue'),

    },
    // 影片介绍（购票页面简介） 佳
    {
      path: '/movieintro',
      name: 'movieintro',
      component: () => import('@/views/MovieDetail/MovieIntro.vue'),
    },
    // 观影数据 佳
    {
      path: '/watchdata',
      name: 'watchdata',
      component: () => import('@/views/MovieDetail/WatchData.vue'),
    },

    // 购票详情页 -lxz
    {
      path: '/buyTicket',
      name: 'buyTicket',
      component: () => import('@/views/Cinema/BuyTicket.vue'),
    },

    // 订单详情页 -lxz
    {
      path: '/ordersdetali',
      name: 'ordersdetali',
      component: () => import('@/views/Cinema/OrdersDetali.vue'),
    },
    // 未支付订单 -jia
    {
      path: '/unpaidorders',
      name: 'unpaidorders',
      component: () => import('@/views/Order/UnpaidOrders.vue'),
    },
    {
      path: '/completedorder',
      name: 'completedorder',
      component: () => import('@/views/Order/CompletedOrder.vue'),
    },
    {
      path: '/orderpage',
      name: 'orderpage',
      component: () => import('@/views/Order/OrderPage.vue'),
    },
    {
      path: '/successorder',
      name: 'successorder',
      component: () => import('@/views/Order/SuccessOrder.vue'),
    },
    // zyy wantwatch
    {
      path: '/wantwatch',
      name: 'wantwatch',
      component: () => import('@/views/Mine/WantWatch.vue'),
    },
    
  ],
})




export default router
